<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/base/base.jsp"%>
<%@ include file="/base/database.jsp"%>
	<%
			String stuID=request.getParameter("stuID");
			
			Connection conn=getConn();
			
			String sql="select * from sys_studentinfo where stuID=?";
			
			PreparedStatement pstmt=conn.prepareStatement(sql);
			
			pstmt.setString(1,stuID);
			
			ResultSet rs=pstmt.executeQuery();
			
			String rs_stuID="";
			String rs_classID="";
			String rs_stuName="";
			String rs_sex="";
			String rs_address="";
			String rs_stuTel="";
			String rs_contact="";
			String rs_contactTel="";
			
			while(rs.next()){
				rs_stuID=rs.getNString("stuID");
				rs_classID=rs.getNString("classID");
				rs_stuName=rs.getNString("stuName");
				rs_sex=rs.getNString("sex");
				rs_address=rs.getNString("address");
				rs_stuTel=rs.getNString("stuTel");
				rs_contact=rs.getNString("contact");
				rs_contactTel=rs.getNString("contactTel");
			}
			
	 %>
	 
<!DOCTYPE html>
<<html>
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport"
		content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<meta name="renderer" content="webkit">
	<title>学生个人信息</title>
	<link rel="stylesheet" href="css/pintuer.css">
	<link rel="stylesheet" href="css/admin.css">
	<link rel="shortcut icon" href="images/logo.jpg">
	<script src="js/jquery.js"></script>
	<script src="js/pintuer.js"></script>
	<script type="text/javascript">
		function ch(){
			alert("修改成功!");
		}
	</script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>学生修改个人信息</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="action_editstudent1.jsp">  
      <div class="form-group">
        <div class="label">
          <label>学号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" readonly="readonly" value="<%=rs_stuID %>" name="stuID" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
       <div class="form-group">
        <div class="label">
          <label>班号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_classID %>" name="classID" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
 		<div class="form-group">
        <div class="label">
          <label>姓名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_stuName %>" name="stuName" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
      	<div class="form-group">
        <div class="label">
          <label>性别：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_sex %>" name="sex" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
      	<div class="form-group">
        <div class="label">
          <label>通讯地址：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_address %>" name="address" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
         <div class="form-group">
        <div class="label">
          <label>学生电话：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_stuTel %>" name="stuTel" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
          <div class="form-group">
        <div class="label">
          <label>联系人：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_contact %>" name="contact" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
          <div class="form-group">
        <div class="label">
          <label>联系人电话：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=rs_contactTel %>" name="contactTel" data-validate="required:数据必填项" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit" onclick="ch()"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body>
</html>